package com.eclab.hello.repository;

import com.eclab.hello.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 描述:
 * 用户持久层
 * @author yd
 * @create 2019-06-04 09:14
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
   public User findUserByUsername(String username);

}
